package com.hsr.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PersonExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PersonExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPerIdIsNull() {
            addCriterion("per_id is null");
            return (Criteria) this;
        }

        public Criteria andPerIdIsNotNull() {
            addCriterion("per_id is not null");
            return (Criteria) this;
        }

        public Criteria andPerIdEqualTo(Integer value) {
            addCriterion("per_id =", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdNotEqualTo(Integer value) {
            addCriterion("per_id <>", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdGreaterThan(Integer value) {
            addCriterion("per_id >", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("per_id >=", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdLessThan(Integer value) {
            addCriterion("per_id <", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdLessThanOrEqualTo(Integer value) {
            addCriterion("per_id <=", value, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdIn(List<Integer> values) {
            addCriterion("per_id in", values, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdNotIn(List<Integer> values) {
            addCriterion("per_id not in", values, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdBetween(Integer value1, Integer value2) {
            addCriterion("per_id between", value1, value2, "perId");
            return (Criteria) this;
        }

        public Criteria andPerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("per_id not between", value1, value2, "perId");
            return (Criteria) this;
        }

        public Criteria andPerNameIsNull() {
            addCriterion("per_name is null");
            return (Criteria) this;
        }

        public Criteria andPerNameIsNotNull() {
            addCriterion("per_name is not null");
            return (Criteria) this;
        }

        public Criteria andPerNameEqualTo(String value) {
            addCriterion("per_name =", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameNotEqualTo(String value) {
            addCriterion("per_name <>", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameGreaterThan(String value) {
            addCriterion("per_name >", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameGreaterThanOrEqualTo(String value) {
            addCriterion("per_name >=", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameLessThan(String value) {
            addCriterion("per_name <", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameLessThanOrEqualTo(String value) {
            addCriterion("per_name <=", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameLike(String value) {
            addCriterion("per_name like", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameNotLike(String value) {
            addCriterion("per_name not like", value, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameIn(List<String> values) {
            addCriterion("per_name in", values, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameNotIn(List<String> values) {
            addCriterion("per_name not in", values, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameBetween(String value1, String value2) {
            addCriterion("per_name between", value1, value2, "perName");
            return (Criteria) this;
        }

        public Criteria andPerNameNotBetween(String value1, String value2) {
            addCriterion("per_name not between", value1, value2, "perName");
            return (Criteria) this;
        }

        public Criteria andPerGenderIsNull() {
            addCriterion("per_gender is null");
            return (Criteria) this;
        }

        public Criteria andPerGenderIsNotNull() {
            addCriterion("per_gender is not null");
            return (Criteria) this;
        }

        public Criteria andPerGenderEqualTo(Integer value) {
            addCriterion("per_gender =", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderNotEqualTo(Integer value) {
            addCriterion("per_gender <>", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderGreaterThan(Integer value) {
            addCriterion("per_gender >", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderGreaterThanOrEqualTo(Integer value) {
            addCriterion("per_gender >=", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderLessThan(Integer value) {
            addCriterion("per_gender <", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderLessThanOrEqualTo(Integer value) {
            addCriterion("per_gender <=", value, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderIn(List<Integer> values) {
            addCriterion("per_gender in", values, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderNotIn(List<Integer> values) {
            addCriterion("per_gender not in", values, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderBetween(Integer value1, Integer value2) {
            addCriterion("per_gender between", value1, value2, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerGenderNotBetween(Integer value1, Integer value2) {
            addCriterion("per_gender not between", value1, value2, "perGender");
            return (Criteria) this;
        }

        public Criteria andPerWorkIsNull() {
            addCriterion("per_work is null");
            return (Criteria) this;
        }

        public Criteria andPerWorkIsNotNull() {
            addCriterion("per_work is not null");
            return (Criteria) this;
        }

        public Criteria andPerWorkEqualTo(Integer value) {
            addCriterion("per_work =", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkNotEqualTo(Integer value) {
            addCriterion("per_work <>", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkGreaterThan(Integer value) {
            addCriterion("per_work >", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkGreaterThanOrEqualTo(Integer value) {
            addCriterion("per_work >=", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkLessThan(Integer value) {
            addCriterion("per_work <", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkLessThanOrEqualTo(Integer value) {
            addCriterion("per_work <=", value, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkIn(List<Integer> values) {
            addCriterion("per_work in", values, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkNotIn(List<Integer> values) {
            addCriterion("per_work not in", values, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkBetween(Integer value1, Integer value2) {
            addCriterion("per_work between", value1, value2, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerWorkNotBetween(Integer value1, Integer value2) {
            addCriterion("per_work not between", value1, value2, "perWork");
            return (Criteria) this;
        }

        public Criteria andPerPhoneIsNull() {
            addCriterion("per_phone is null");
            return (Criteria) this;
        }

        public Criteria andPerPhoneIsNotNull() {
            addCriterion("per_phone is not null");
            return (Criteria) this;
        }

        public Criteria andPerPhoneEqualTo(String value) {
            addCriterion("per_phone =", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneNotEqualTo(String value) {
            addCriterion("per_phone <>", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneGreaterThan(String value) {
            addCriterion("per_phone >", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("per_phone >=", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneLessThan(String value) {
            addCriterion("per_phone <", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneLessThanOrEqualTo(String value) {
            addCriterion("per_phone <=", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneLike(String value) {
            addCriterion("per_phone like", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneNotLike(String value) {
            addCriterion("per_phone not like", value, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneIn(List<String> values) {
            addCriterion("per_phone in", values, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneNotIn(List<String> values) {
            addCriterion("per_phone not in", values, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneBetween(String value1, String value2) {
            addCriterion("per_phone between", value1, value2, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerPhoneNotBetween(String value1, String value2) {
            addCriterion("per_phone not between", value1, value2, "perPhone");
            return (Criteria) this;
        }

        public Criteria andPerAddressIsNull() {
            addCriterion("per_address is null");
            return (Criteria) this;
        }

        public Criteria andPerAddressIsNotNull() {
            addCriterion("per_address is not null");
            return (Criteria) this;
        }

        public Criteria andPerAddressEqualTo(String value) {
            addCriterion("per_address =", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressNotEqualTo(String value) {
            addCriterion("per_address <>", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressGreaterThan(String value) {
            addCriterion("per_address >", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressGreaterThanOrEqualTo(String value) {
            addCriterion("per_address >=", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressLessThan(String value) {
            addCriterion("per_address <", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressLessThanOrEqualTo(String value) {
            addCriterion("per_address <=", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressLike(String value) {
            addCriterion("per_address like", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressNotLike(String value) {
            addCriterion("per_address not like", value, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressIn(List<String> values) {
            addCriterion("per_address in", values, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressNotIn(List<String> values) {
            addCriterion("per_address not in", values, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressBetween(String value1, String value2) {
            addCriterion("per_address between", value1, value2, "perAddress");
            return (Criteria) this;
        }

        public Criteria andPerAddressNotBetween(String value1, String value2) {
            addCriterion("per_address not between", value1, value2, "perAddress");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}